CC = g++
RM = rm
CFLAGS = -g -Wall 

.SUFFIXES:.cpp
SRCS = parser.cpp lexer.cpp error.cpp main.cpp
OBJS = $(SRCS:.cpp=.o)

.cpp.o:
	$(CC) $(CFLAGS) -c $<
cal.exe: $(OBJS) 
	$(CC) -o $@ $(OBJS)

clean:
	$(RM) *.o
	$(RM) *.exe
